home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / oldunits_neweffects / oldunits_neweffects_tracksmoke3.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.6 KB  |  145 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_NEWTRACKSMOKE3)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5. desc.ActivityType = ENACT_ACTIVE
  6.  
  7. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  8. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  9. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  10. desc.LocalPosition = vzbzd1
  11. vzbzd1:delete()
  12. desc.isAnimateTexture = false
  13. desc.RenderType = ENRENDERTYPE_GEOMETRY
  14.  
  15. Emitter = desc.PS.PSDescription
  16. Emitter.ParticleTypesNumber = 1
  17. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  18. Emitter.EmitterPosition = vzbzd2
  19. vzbzd2:delete()
  20. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  21. Emitter.EmitterDirection = vzbzd3
  22. vzbzd3:delete()
  23. Emitter.EmitterLifeTime = 1
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. PT = Emitter.ParticleTypesParams[1]
  40. PT.IsEmitterLocked = false
  41. PT.DrawOrder = 1
  42. PT.Material = ENMAT_SIMPLEPARTICLE
  43.  
  44. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  45.  
  46. PT.ParticlesPerSecond = 70;
  47. PT.InitialNumberOfParticles = 0.0;
  48. PT.BaseLifeTime = 1.0;
  49. PT.BaseLifeTimeVariance = 0.1;
  50. PT.BaseSpeed = 1.0;
  51. PT.BaseSpeedVariance = 0.2;
  52.  
  53. PT.TangentSpeed = 1.0;
  54. PT.TangentSpeedVariance = 0.1;
  55. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  56. PT.TangentDirection = vzbzd4
  57. vzbzd4:delete()
  58. PT.TangentAngleMin = 0.0;
  59. PT.TangentAngleMax = 6.28;
  60. PT.IsTangentDependOnBase = false;
  61.  
  62. PT.BaseAngle = 3.0;
  63. PT.BaseAngleVariance = 5.0;
  64. PT.BaseAngleSpeed = 0.5;
  65. PT.BaseAngleSpeedVariance = 0.3;
  66. PT.BaseAngleSpeedDirection = 0;
  67. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  68. PT.BaseDirection = vzbzd5
  69. vzbzd5:delete()
  70. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  71. PT.BaseDirectionVariance = vzbzd6
  72. vzbzd6:delete()
  73. local vzbzd7 = D3DXVECTOR3:new(0,2,0)
  74. PT.BasePosition = vzbzd7
  75. vzbzd7:delete()
  76. local vzbzd8 = D3DXVECTOR3:new(0,2,5)
  77. PT.BasePositionVariance = vzbzd8
  78. vzbzd8:delete()
  79. PT.BaseSize = 2.0;
  80. PT.BaseSizeVariance = 0.3;
  81.  
  82. -- color over time
  83. PT.ColorOverTimeR[1].TimePercent = 0.0;
  84. PT.ColorOverTimeR[1].Value = 0.7;
  85. PT.ColorOverTimeG[1].TimePercent = 0.0;
  86. PT.ColorOverTimeG[1].Value = 0.6;
  87. PT.ColorOverTimeB[1].TimePercent = 0.0;
  88. PT.ColorOverTimeB[1].Value = 0.6;
  89.  
  90. PT.ColorOverTimeR[2].TimePercent = 1.0;
  91. PT.ColorOverTimeR[2].Value = 0.2;
  92. PT.ColorOverTimeG[2].TimePercent = 1.0;
  93. PT.ColorOverTimeG[2].Value = 0.2;
  94. PT.ColorOverTimeB[2].TimePercent = 1.0;
  95. PT.ColorOverTimeB[2].Value = 0.2;
  96.  
  97. -- transparency over time
  98. PT.TransparencyOverTime[1].TimePercent = 0.0;
  99. PT.TransparencyOverTime[1].Value = 0.0;
  100.  
  101. PT.TransparencyOverTime[2].TimePercent = 0.1;
  102. PT.TransparencyOverTime[2].Value = 0.5;
  103.  
  104. PT.TransparencyOverTime[3].TimePercent = 1.0;
  105. PT.TransparencyOverTime[3].Value = 0.0;
  106.  
  107. -- size over time
  108. PT.SizeOverTime[1].TimePercent = 0.0;
  109. PT.SizeOverTime[1].Value = 5.0;
  110.  
  111. PT.SizeOverTime[2].TimePercent = 1.0;
  112. PT.SizeOverTime[2].Value = 15.0;
  113.  
  114. -- Speed over time
  115. PT.SpeedOverTime[1].TimePercent = 0.0;
  116. PT.SpeedOverTime[1].Value = 1.0;
  117.  
  118. PT.SpeedOverTime[2].TimePercent = 1.0;
  119. PT.SpeedOverTime[2].Value = 1.0;
  120.  
  121. -- Tangent Speed over time
  122. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  123. PT.TangentSpeedOverTime[1].Value = 8.0;
  124.  
  125. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  126. PT.TangentSpeedOverTime[2].Value = 8.0;
  127.  
  128.  
  129. -- GravityAcceleration over time
  130. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  131. PT.GravityAccelerationOverTime[1].Value = 20.0;
  132.  
  133. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  134. PT.GravityAccelerationOverTime[2].Value = 10.0;
  135.  
  136. -- AngleSpeed over time
  137. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  138. PT.AngleSpeedOverTime[1].Value = 0.5;
  139.  
  140. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  141. PT.AngleSpeedOverTime[2].Value = 0.1;
  142.  
  143.  
  144.  
  145.